
public class clock extends Thread{
	public static boolean count=true;
	
	public void run(){
		goTimer();
	}
	
	public void goTimer(){
		count=true;
		int hs=0;
		int s=0;
		int m=0;
		int h=0;
		while(count){
			try{
				this.sleep(100);
				hs++;
				if(hs>9){
					s++;
					hs=0;
				}if(s>59){
					m++;
					s=0;
				}if(m>59){
					h++;
					m=0;
				}
				timer.timer.setText(h + ":" + m + ":" + s + "." + hs);
			}catch(Exception e){
				;
			}
		}
	}
}
